package com.meshnetics.gb.util.checkers;

import com.meshnetics.gb.util.Conversions;

/**
 * Check range for u-short (u-int-16) value: 0..65535
 *
 * @author Yury Aserchev (yaserchev@meshnetics.com)
 *         Date: 23.06.2008 16:58:08
 */
class RangeCheckerUShort extends AbstractRangeChecker {
    /**
     * Returns min value for u-short (0).
     * @return min value for u-short (0).
     */
    protected long getMin() {
        return 0;
    }

    /**
     * Returns max value for u-short (65535).
     * @return max value for u-short (65535).
     */
    protected long getMax() {
        return Conversions.SHORT_MASK;
    }
}
